package com.travel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * (TbCart)实体类
 *
 * @author makejava
 * @since 2023-11-07 20:07:45
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbCart implements Serializable {
    private static final long serialVersionUID = 495195106760271088L;
    @TableId(type = IdType.AUTO)
    private Integer carId;

    private String carSname;

    private String carEname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date carStime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date carEtime;

    private BigDecimal carPrice;

    private String carNumber;

    private String carSeat;

    private Integer carType;

}
